<?php
/**
 * @version 0.8.3 2010-10-07
 * @package Joomla
 * @subpackage LeagueResults
 * @copyright (C)  2008, 2009, 2010 Henryk Drozd
 * @license GNU/GPL, see LICENSE.php
 * LeagueResults is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 2
 * as published by the Free Software Foundation.

 * LeagueResults is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');?>

<?php

?>

<?php
echo $this->pane->startPane( 'Person' );
echo $this->pane->startPanel( JText::_( 'BASIC' ), 'panel1' );					
?>	
<table class="playerprofile" >
<tr>
	<?php if ($this->settings->frontend_images == 1) {?>
			<td width="20%" rowspan="6">
			<img src="<?php echo $this->settings->pimage_folder.$this->row[0]->picture; ?>" />
			<br/>
			<?php echo $this->row[0]->role; ?>
			</td>
			<?php }?>


	<td class="lr_label"><?php echo JText::_( 'LASTANDFIRSTNAME' ); ?></td>
	<td class="lr_value"><?php echo $this->row[0]->pname; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'POSITION' ); ?></td>
	<td class="lr_value"><?php echo $this->row[0]->position; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'NATIONALITY' ); ?></td>
	<td class="lr_value"><?php echo $this->row[0]->nationality; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'BIRTHDAY' ); ?></td>
	<td class="lr_value"><?php echo (($this->row[0]->birthday<>'0000-00-00')?
									date($this->settings->dateformat, strtotime($this->row[0]->birthday.' 00:00:00'))
									:'&nbsp;'); ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'WEIGHT' ); ?></td>
	<td class="lr_value"><?php echo htmlspecialchars($this->row[0]->weight, ENT_QUOTES, 'UTF-8').'&nbsp;'; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'HEIGHT' ); ?></td>
	<td class="lr_value"><?php echo htmlspecialchars($this->row[0]->height, ENT_QUOTES, 'UTF-8').'&nbsp;'; ?></td>
</tr>
<tr><td class="lr_label" colspan="3"><?php echo JText::_( 'INFO' ); ?></td></tr>
<tr><td colspan="3" class="lr_value"><?php echo $this->row[0]->info; ?></td></tr>

</table>

<?php
echo $this->pane->endPanel();
echo $this->pane->startPanel( JText::_( 'ADDRESS' ), 'panel2' );

?>
<table class="playerprofile" >
<tr>
	<td class="lr_label"><?php echo JText::_( 'ADDRESS1' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->address1; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'ADDRESS2' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->address2; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'CITY' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->city; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'STATE' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->state; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'ZIP' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->zip; ?></td>
</tr>
</table>
<?php
echo $this->pane->endPanel();
echo $this->pane->startPanel( JText::_( 'CONTACTS' ), 'panel3' );
?>
<table class="playerprofile" >
<tr>
	<td class="lr_label"><?php echo JText::_( 'EMAIL' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->email; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'EMAIL2' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->email2; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'PHONE1' ).':'; ?></td>
	<td class="lr_value"><? echo $this->row[0]->phone1; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'PHONE2' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->phone2; ?></td>
</tr>
</table>
<?php
echo $this->pane->endPanel();
echo $this->pane->startPanel( JText::_( 'OTHER' ), 'panel4' );
?>	
<table class="playerprofile" >
<tr>
	<td class="lr_label"><?php echo JText::_( 'MOTHER' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->mother; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'FATHER' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->father; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'JERSEY_SIZE' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->jersey_size; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'TSHIRT_SIZE' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->tshirt_size; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'BIRTH_CERTIFICATE' ).':'; ?></td>
	<td class="lr_value">
	<?php 
	if ($this->row[0]->birth_certificate)
		 echo JText::_( 'YES' );
	else
		 echo JText::_( 'NO' );
	?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'REGISTRATION_ID' ).':'; ?></td>
	<td class="lr_value">
	<?php 
	if ($this->row[0]->registration_id)
		 echo JText::_( 'YES' );
	else
		 echo JText::_( 'NO' );
	?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'REGISTRATION_ID_EXPIRE' ).':'; ?></td>
	<td class="lr_value"><?php echo date($this->settings->dateformat, strtotime($this->row[0]-registration_id_expire.' 00:00:00')); ?></td>
</tr>

<tr>
	<td class="lr_label"><?php echo JText::_( 'JERSEY_NO' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->jersey_no; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'BIO_ARTICLE_ID' ).':'; ?></td>
	<td class="lr_value"><?php echo $this->row[0]->bio_article_id; ?></td>
</tr>

</table>
<?php 
echo $this->pane->endPanel();
echo $this->pane->endPane();
?>				

